package com.bby.disk.bean.req;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;
import sun.dc.pr.PRError;

import java.io.BufferedInputStream;
import java.io.InputStream;

@Data
public class SimpleUploadData {
    private String guid;
    private long finished = 0;
    private BufferedInputStream inputStream;

    public SimpleUploadData(String guid, Long finished, BufferedInputStream inputStream) {
        this.guid = guid;
        this.finished = finished==null? 0:finished;
        this.inputStream = inputStream;
    }
}
